package org.jeecg.modules.farming.product.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 供求产品表
 * @Author: jeecg-boot
 * @Date:   2020-12-13
 * @Version: V1.0
 */
@Data
@TableName("fa_product")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="fa_product对象", description="供求产品表")
public class FaProduct implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**联盟id*/
	@Excel(name = "联盟id", width = 15)
    @ApiModelProperty(value = "联盟id")
    private String unionId;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String title;
	/**内容*/
	@Excel(name = "内容", width = 15)
    @ApiModelProperty(value = "内容")
    private String remark;
	/**图片*/
	@Excel(name = "图片", width = 15)
    @ApiModelProperty(value = "图片")
    private String imgs;
	/**城市*/
	@Excel(name = "城市", width = 15)
    @ApiModelProperty(value = "城市")
    private String city;
	/**信息类型*/
	@Excel(name = "信息类型", width = 15, dicCode = "supply_demand_type")
	@Dict(dicCode = "supply_demand_type")
    @ApiModelProperty(value = "信息类型")
    private Integer sdType;
	/**所属分类*/
	@Excel(name = "所属分类", width = 15, dicCode = "supply_demand_contents_type")
	@Dict(dicCode = "supply_demand_contents_type")
    @ApiModelProperty(value = "所属分类")
    private String cateId;
	/**附件标题*/
	@Excel(name = "附件标题", width = 15)
    @ApiModelProperty(value = "附件标题")
    private String attachTitle;
	/**附件*/
	@Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private String attachment;
	/**联盟名称*/
	@Excel(name = "联盟名称", width = 15)
    @ApiModelProperty(value = "联盟名称")
    private String unionName;
	/**分类名称*/
	@Excel(name = "分类名称", width = 15)
    @ApiModelProperty(value = "分类名称")
    private String cateName;
	/**点赞*/
	@Excel(name = "点赞", width = 15)
    @ApiModelProperty(value = "点赞")
    private Integer praiseCount;
	/**评价总数*/
	@Excel(name = "评价总数", width = 15)
    @ApiModelProperty(value = "评价总数")
    private Integer lmCount;
	/**状态*/
    @Excel(name = "状态", width = 15, dicCode = "fpro_audit_status")
    @Dict(dicCode = "fpro_audit_status")
    @ApiModelProperty(value = "状态")
    private Integer status;
	/**头像*/
	@Excel(name = "头像", width = 15)
    @ApiModelProperty(value = "头像")
    private String headImgUrl;
	/**省份*/
	@Excel(name = "省份", width = 15)
    @ApiModelProperty(value = "省份")
    private String province;
	/**区域*/
	@Excel(name = "区域", width = 15)
    @ApiModelProperty(value = "区域")
    private String area;
	/**详细地址*/
	@Excel(name = "详细地址", width = 15)
    @ApiModelProperty(value = "详细地址")
    private String address;

    @TableField(exist = false)
    private String openId;

    /**登录人是否点赞*/
    @TableField(exist = false)
    private Integer isPraise;

    /**是否当前登录人*/
    @TableField(exist = false)
    private Integer isSelfSdInfo;

    /**驳回原因*/
    @Excel(name = "驳回原因", width = 15)
    @ApiModelProperty(value = "驳回原因")
    private String auditDesc;
}
